package adapter

type tMockSpecialAdapter struct {
	mOrigin ISpecialThermometer
}


func newSpecialAdapter(origin ISpecialThermometer) IThermometer {
	return &tMockSpecialAdapter{
		origin,
	}
}

func (me *tMockSpecialAdapter) Centigrade() float64 {
	return (me.mOrigin.Fahrenheit() - 32) * 5 / 9
}